<?php $this->load->view('layout/header'); ?>
<form name="form1" method="post" action="<?php echo b_url('config/admin_setrole_action/');?>" id="form1">
    <div>
</div>
    <div id="container">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_form">
            <tr class="table_form_title">
                <td colspan="2">设置角色</td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">管理员姓名：</td>
                <td>
                    <span id="lblRealName"><?php echo $info['adminname']?></span>
                    <input type="hidden" name="adminid" id="hidAdminID" value="<?php echo $info['adminid'];?>" />
                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">分配角色：</td>
                <td>
                    
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_cancel">
                        <tr>
                            <td><strong>系统</strong></td>
                        </tr>
                        <tr>
                            <td>
                                <span id="repSysRoleGroup_ctl00_dlSysRole">
                                    <?php foreach ($roleinfo as $key => $value):?>
                                    <span>
                                        <input type="radio" name="sysroleid[]" value="<?php echo $value['sysroleid']?>" id="SysRoleID1"
                                         <?php foreach ($info['roleids'] as $k => $v) {
                                            if($value['sysroleid'] == $v){
                                                echo "checked='checked'";
                                            }
                                        }?> />
                                        <label for="SysRoleID1"><?php echo $value['rolename']?></label>
                                    </span>
                                    <?php endforeach ;?>
                                </span>
                            </td>
                        </tr>
                    </table>
                        
                </td>
            </tr>
            <tr class="table_form_btn">
                <td>
                </td>
                <td>
                    <input type="submit" value="保存" id="btnSave" />
                    <input type="button"  value="返回" onclick="javascript:history.go(-1);" />
                    <span id="errMsg" style="color:Red;"></span>
                </td>
            </tr>
        </table>
    </div>
</form>
<?php $this->load->view('layout/footer'); ?>
